import { axios } from '@/utils/request'
export function getTablePage(parameter) {
  return axios({
    url: '/sys/hr/enterprise/staff/pageQueryStaffManage',
    method: 'post',
    data:parameter
  })
}
export function enterprisePactTemplate(parameter) {
  return axios({
    url: '/sys/hr/enterprise/enterprisePactTemplate',
    method: 'post',
    data: parameter
  })
}
export function enterpriseStaffInfo(parameter) {
  return axios({
    url: '/sys/hr/enterprise/staff/enterpriseStaffInfo',
    method: 'post',
    data: parameter
  })
}
export function addStaff(parameter) {
  return axios({
    url: '/sys/hr/enterprise/staff/add',
    method: 'post',
    data:parameter
  })
}
export function editStaff(parameter) {
  return axios({
    url: '/sys/hr/enterprise/staff/update',
    method: 'post',
    data:parameter
  })
}
export function delStaff(parameter) {
  return axios({
    url: '/sys/hr/enterprise/staff/deleteEnterpriseStaff',
    method: 'post',
    data:parameter
  })
}
export function batchDeleteEnterpriseStaff(parameter) {
  return axios({
    url: '/sys/hr/enterprise/staff/batchDeleteEnterpriseStaff',
    method: 'post',
    data:parameter
  })
}
export function queryEnterpriseStaffByIdCard(parameter) {
  return axios({
    url: '/sys/hr/enterprise/staff/queryEnterpriseStaffByIdCard',
    method: 'post',
    data:parameter
  })
}
export function previewEnterpriseImportRecord(parameter) {
  return axios({
    url: '/sys/hr/enterprise/staff/previewEnterpriseImportRecord',
    method: 'post',
    data:parameter
  })
}
export function importEnterpriseStaffRecords(parameter) {
  return axios({
    url: '/sys/hr/enterprise/staff/importEnterpriseStaffRecords',
    method: 'post',
    data:parameter
  })
}
export function submitImportRecord(parameter) {
  return axios({
    url: '/sys/hr/enterprise/staff/submitImportRecord',
    method: 'post',
    data:parameter
  })
}
export function removeImportRecords(parameter) {
  return axios({
    url: '/sys/hr/enterprise/staff/removeImportRecords',
    method: 'post',
    data:parameter
  })
}
export function clearImportRecords(parameter) {
  return axios({
    url: '/sys/hr/enterprise/staff/clearImportRecords',
    method: 'post',
    data:parameter
  })
}

// 下载
export function downWaitInviteExcel(parameter) {
  return axios({
    url: '/sys/hr/enterprise/staff/downWaitInviteExcel',
    method: 'post',
    data:parameter,
    responseType: 'blob'
  })
}
export function downloadExcelTemplate(id) {
  return axios({
    url: '/sys/hr/enterprise/staff/downloadExcelTemplate/' + id,
    method: 'get',
    responseType: 'blob'
  })
}
export function getInductionExport(parameter) {
  return axios({
    url: '/sys/hr/enterprise/staff/exportEnterpriseEntryStaff',
    method: 'post',
    data: parameter,
    responseType: 'blob'
  })
}